package com.sybil.ot.servicio;

import com.sybil.ot.dao.PlantaDAO;
import com.sybil.ot.dominio.Planta;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("plantaService")
@Transactional(readOnly = true)
public class PlantaService {

   @Autowired
   private PlantaDAO plantaDAO;

   public List<Planta> obtenerPlantas() {
      return plantaDAO.obtenerPlantas();
   }

   public Planta obtenerPlanta(String clave) {
      return plantaDAO.obtenerPlanta(clave);
   }
}
